import request from '@/utils/request'

// 查询卡口补录管理列表
export function listPassGateRecordHead(query) {
  return request({
    url: '/billsdecl/passGateRecordHead/list',
    method: 'get',
    params: query
  })
}

// 查询卡口补录管理列表
export function listPassGateRecordHeadGR(query) {
  return request({
    url: '/billsdecl/passGateRecordHead/listGr',
    method: 'get',
    params: query
  })
}

// 查询卡口补录管理详细
export function getPassGateRecordHead(id) {
  return request({
    url: '/billsdecl/passGateRecordHead/getOne' + id,
    method: 'get'
  })
}

// 新增卡口补录管理
export function addPassGateRecordHead(data) {
  return request({
    url: '/billsdecl/passGateRecordHead/add',
    method: 'post',
    data: data
  })
}

// 新增铁路卡口补录管理
export function addPassGateRecordHeadGR(data) {
  return request({
    url: '/billsdecl/passGateRecordHead/railWayGR',
    method: 'post',
    data: data
  })
}

// 修改卡口补录管理
export function updatePassGateRecordHead(data) {
  return request({
    url: '/billsdecl/passGateRecordHead/edit',
    method: 'post',
    data: data
  })
}

// 修改卡口补录管理
export function updatePassGateRecordHeadGR(data) {
  return request({
    url: '/billsdecl/passGateRecordHead/railWayGR',
    method: 'post',
    data: data
  })
}

// 删除卡口补录管理
export function delPassGateRecordHead(id) {
  return request({
    url: '/billsdecl/passGateRecordHead/remove/' + id,
    method: 'get'
  })
}


//申报人工放行
export function declarePassGateRecordHead(id) {
  return request({
    url: '/billsdecl/passGateRecordHead/declare/' + id,
    method: 'post'
  })
}
